//
//  LHNewHomeTableViewCell.m
//  Enjoy_Music
//
//  Created by Bruce_Lin on 15/6/9.
//  Copyright (c) 2015年 Bruce. All rights reserved.
//

#import "LHNewHomeTableViewCell.h"

@implementation LHNewHomeTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.pic = [[UIImageView alloc]init];
        [self.contentView addSubview:_pic];
        _pic.backgroundColor = [UIColor blackColor];
        
        self.labelImage = [[UIImageView alloc]init];
        [self.contentView addSubview:_labelImage];
        _labelImage.backgroundColor = [UIColor colorWithRed:0.229 green:0.231 blue:0.231 alpha:1.000];
        _labelImage.alpha = 0.4;
        
        self.nameLabel = [[UILabel alloc]init];
        [self.contentView addSubview:_nameLabel];
        [_nameLabel setFont:[UIFont fontWithName:@"MarkerFelt-Wide" size:16]];
        //        _nameLabel.backgroundColor = [UIColor colorWithRed:0.764 green:0.857 blue:0.890 alpha:1.000];
        _nameLabel.textColor = [UIColor whiteColor];
    }
    
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    [self.pic setFrame:CGRectMake(0, 0, LHWidth, self.contentView.frame.size.height)];
    [self.nameLabel setFrame:CGRectMake(0, 0, LHWidth, 20)];
    [self.labelImage setFrame:CGRectMake(0, _nameLabel.frame.origin.y, LHWidth, 20)];
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
